<?php
/**
 * CakePOWER
 * Core Global DAC Configuration
 * 
 * @author:			Marco Pegoraro
 * @mail:			marco(dot)pegoraro(at)gmail(dot)com
 * 
 * 26 October 2009
 * Core configuration rules for repositories paths.
 * 
 * This file is loaded BEFORE "/app/config/global.php" who can post-define all these informations
 * overriding this built-in configuration.
 */



/**
 * Repositories List
 * Extends application defined repositories with system default repositories.
 * 
 * NOTE: Plugin's repository is setted up into plugins's configuration file.
 * 
 */
DAC::extend('power.repositories.views', 		array( POWER_VIEWS ));
DAC::extend('power.repositories.helpers', 		array( POWER_HELPERS ));
DAC::extend('power.repositories.controllers', 	array( POWER_CONTROLLERS ));
DAC::extend('power.repositories.components', 	array( POWER_COMPONENTS ));
DAC::extend('power.repositories.models', 		array( POWER_MODELS ));
DAC::extend('power.repositories.behaviors', 	array( POWER_VIEWS ));
DAC::extend('power.repositories.vendors', 		array() );




/**
 * This is a list of objects loaded by the PowerController::__construct() method.
 * "true" values only will be loaded at startup!
 * 
 * These objects, models, helpers, behaviors are searched through the entire
 * repositories.
 * 
 */
DAC::write('power.load',array(
	
	'components' => array(
		'Pow' 				=> true,
		'Reg' 				=> true, // This will use a special database table!
	),
	
	'helpers' => array(
		'Pow' 				=> true,
	),
	
));
?>